package com.ellricky.market

import android.app.Activity
import android.content.Intent
import com.ellricky.baselib.ui.clue.AddClueActivity
import com.ellricky.market.ui.act.ActDetailActivity

///////////////////////////////////////////////////////////////////////////
//  // 页面跳转
///////////////////////////////////////////////////////////////////////////

internal fun jumpActDetail(ctx: Activity, pageType: Int?, id: String?, taskType: String?) {
    val intent = Intent(ctx, ActDetailActivity::class.java)
    intent.putExtra(MARKET_ACT_PAGE_TYPE, pageType)
    intent.putExtra(MARKET_ACT_ID, id)
    intent.putExtra(MARKET_ACT_TASK_TYPE, taskType)
    ctx.startActivityForResult(intent, 0)
}

internal fun jumpAddClue(ctx: Activity) {
    val intent = Intent(ctx, AddClueActivity::class.java)
    ctx.startActivityForResult(intent, 0)
}